package cn.libinal.scloud.winter.domain;

import cn.libinal.scloud.base.common.jackson.CustomSerialize;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author libinal
 * created at 2018/11/3 19:18
 */
@Data
public class ProductVo {

    private String id;
    private String name;

    @JsonSerialize(using = CustomSerialize.CustomDoubleSerialize.class)
    private double price;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", shape = JsonFormat.Shape.STRING)
    private LocalDateTime createTime;
}
